# 111 初识对象
# class Students:
#     name = None
#     gender = None
#     nationality = None
#     native_place = None
#     age = None
#
#
# # 创建一个对象
# stu_1 = Students()
# # 对象属性进行赋值
# stu_1.name = 'wenxiaojian'
# stu_1.gender = 'boy'
# stu_1.nationality = 'China'
# stu_1.native_place = 'shandong'
# stu_1.age = 28
#
# print(stu_1.name)
# print(stu_1.gender)
# print(stu_1.nationality)
# print(stu_1.native_place)
# print(stu_1.age)

# 112 类的成员方法
# class Students:
#     name = None
#
#     def say_hi1(self):
#         print(f"大家好，我是{self.name},欢迎大家多多关照")
#
#     def say_hi2(self, msg):
#         print(f"大家好，我是{self.name},{msg}")
#
#
# stu = Students()
# stu.name = 'wenxiaojian'
# stu.say_hi1()
# stu.say_hi2('welcome')
#
# stu2 = Students()
# stu2.name = 'hanlei'
# stu2.say_hi1()
# stu2.say_hi2('woxihuanni')
